<%@page import="com.cad3d.filemanager.dao.User"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<s:url value ="/css/leftMenu.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<s:url value ="/css/styles.css"/>" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="js/three.js/three.min.js"></script> 
<script type="text/javascript" src="js/loader/TrackballControls.js"></script> 
<script type="text/javascript" src="js/loader/STLLoader.js"></script> 
<script src="js/Detector.js"></script>
<title><tiles:insertAttribute name="title" ignore="true" /></title>
</head>
<body>
<%
						User user = (User) session.getAttribute("loggedInUser");
					%>
		<div id="wraper">
				<div id="nav">
					<ol>
						<li>
							<s:a action="login">Home</s:a>
						</li>
						
						<%if(user.isIsAdmin()){
							%>
						<li>
							<s:a action="usermanager">User management</s:a>
						</li>
						<%} %>
					</ol>
				</div>
			<div id="message">
				<p>
					You are logged in with
					<%=user.getUsername()%>
					<s:a action="logout">Logout</s:a>
				</p>
			</div>

			<div id="contents">
				<tiles:insertAttribute name="body" />
			</div>
			<div id="footer">
				<tiles:insertAttribute name="footer" />
			</div>
		</div>
</body>
</html>